package org.example.dao;

import org.apache.ibatis.annotations.Param;
import org.example.dto.CurriculumPlanDto;
import org.example.dto.GiveInstructionDto;
import org.example.pojo.Plan;
import org.example.vo.CurriculumPlanVo;

import java.util.List;

public interface CurriculumPlanDao {
    List<Plan> queryAllCurriculumPlan();
    Integer addCurriculumPlan(Plan curriculumPlan);
    Integer deleteCurriculumPlan(int id);
    Integer updateCurriculumPlan(Plan curriculumPlan);
    Integer queryCurriculumPlanIdByName(String curriculumPlanName);
    Plan queryCurriculumPlanNameById(Integer id);
    Integer count();
    Integer countCurriculumPlanBySchoolYearAndSemester(@Param("schoolYear") String schoolYear, @Param("semester") String semester);

//    List<GiveInstruction> queryAllGiveInstruction();
//    List<GiveInstruction> queryCurriculumByName(String curriculumName);
    Integer countCurriculum();

    GiveInstructionDto queryCurriculumById(Integer id);

}
